package com.joker.microstoremanager.repository;

import com.joker.microstoremanager.model.InOutHistory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;

public interface HistoryRepository extends JpaRepository<InOutHistory,Long> {

    Page<InOutHistory> findByShopIdAndOpDateBetween(Long id,Date start, Date end, Pageable page);

    Page<InOutHistory> findByShopIdAndOpDateBetweenAndOperateType(Long id, Date start, Date end, Integer type, Pageable page);
}
